<template>
    <div class="header">
    	<div class="header-left">
    		<div class="iconfont back-icon">&#xe624;</div>
    	</div>
    	<div class="header-input">
    		<span class="iconfont">&#xe632;</span>
    		输入城市/景点/游戏主题
    	</div>
    	<router-link to='/city'>
    		<div class="header-right">
    		{{this.city}}
    		<span class="iconfont arro">&#xe64a;</span>
    	</div>
    	</router-link>
    </div>
</template>

<script>
	import { mapState } from 'vuex'
	export default {
		name: 'HomeHeader',
		computed: {
			...mapState(['city'])
		}
	}
</script>

<style lang="stylus" scoped="scoped">
@import '~styles/varibles.styl'
  .header
    display:flex
    height:$headerHeight
    line-height:$headerHeight
    color:#fff
    background-color:$bgColor
    .header-left
      width:35px
      float:left
      .back-icon
        text-align:center
        font-size: 20px
     .header-input
      flex:1
      margin-top:6px
      margin-left: 3px
      padding-left:5px
      margin-bottom: 6px
      background-color:#fff
      border-radius:5px
      color: #e4e7ea
      line-height:31px
     .header-right
      min-width:60px
      padding:0 5px
      float:right
      color:#fff
      text-align:center
      .arro
       margin-left:-2px
       font-size:12px
    
</style>